package com.ganyu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ganyu.domain.dto.UpdateAdminArticleDto;
import com.ganyu.domain.entity.ArticleTag;
import com.ganyu.domain.entity.Category;
import com.ganyu.domain.entity.Tag;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * DATA: 2022/9/29
 * Author: 晨夕
 */
@Mapper
public interface ArticleTagMapper extends BaseMapper<ArticleTag> {
    //根据article_id向数据库中插入tag_id
    void insert(@Param("articleId") Long articleId,@Param("tagId") Long tagId);
    //根据article_id获取tag_id
    List<Long> selectTagList(@Param("id") Long id);
    //根据id删除标签
    void deleteTagById(@Param("id") Long id);
}
